/*
 * @Author: your name
 * @Date: 2021-05-26 17:01:42
 * @LastEditTime: 2021-05-26 19:36:15
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /xiangpan-admin/src/use/initPagination.ts
 */
import { TablePaginationConfig } from 'antd/es/table';

const initPagination: {
  dataList: any[];
  pagination: TablePaginationConfig;
} = {
  dataList: [],
  pagination: {
    current: 1,
    pageSize: 10,
    total: 0,
    showSizeChanger: false,
    showTotal: (total: number): string => `共${total}条`,
    position: ['bottomLeft'],
  },
};

export default initPagination;
